#ifndef GADGETWIDGET_H
#define GADGETWIDGET_H
/*

BlackRabbit - OpenSource IDE.
@author Edward Sarkisyan (edward.sarkisyan@gmail.com)
Use LGPL (http://www.gnu.org/copyleft/lesser.html)

*/

#include <QtGui/QWidget>
#include "gadgetwindowwidget.h"
#include "widgets/pluginsview.h"

namespace Ui {
    class GadgetWidget;
}

class GadgetWidget : public QWidget {
    Q_OBJECT
public:
    GadgetWidget(QWidget *parent = 0, PluginsView* pluginView=0);
    ~GadgetWidget();
    void setPluginView(PluginsView* pluginView);

protected:
    void changeEvent(QEvent *e);

private:
    bool numbersIsHidden;
    Ui::GadgetWidget *m_ui;
    GadgetWindowWidget *gadgets[6];
    PluginsView *plugins;

private slots:
    void on_gadget6Bttn_clicked();
    void on_gadget5Bttn_clicked();
    void on_gadget4Bttn_clicked();
    void on_gadget3Bttn_clicked();
    void on_gadget2Bttn_clicked();
    void on_gadget1Bttn_clicked();
    void addPluginWidget(int);
    void on_hideNumbers_clicked();
};

#endif // GADGETWIDGET_H
